import request from '@/utils/request'

//获取分类列表
export function findByType(type,page,pageSize) {
  return request({
    url: 'message/findByType',
    method: 'get',
    params: {
      type: type,
      page:page,
      pageSize:pageSize
    }
  })
}


//根据id获取
export function findById(id) {
  return request({
    url: 'message/findById',
    method: 'get',
    params: {
      id: id
    }
  })
}
